﻿using System.Collections.Generic;
using IDAL;

namespace BLL
{
    /// <summary>
    /// 权限service
    /// </summary>
    public class ActionService
    {
        private static readonly IActionDAL dal = DALFactory.DataAccess.createActionDAL();

        //根据ID得到权限
        public Model.Action getActionById(int id)
        {
            return dal.getAction(id);
        }

        //得到权限列表
        public IList<Model.Action> getActionList()
        {
            return dal.getAction();
        }

    }
}
